package com.peas.platform.module.icims.expenditure.kpis.dto;

import java.util.*;
import java.math.*;
import com.peas.platform.common.core.dto.BaseDto;
import com.peas.platform.framework.mybatisplus.annotation.Condition;
import com.peas.platform.framework.mybatisplus.annotation.ConditionOperator;
import lombok.Data;
import lombok.EqualsAndHashCode;

// 调整单
@Data
@EqualsAndHashCode(callSuper = false)
public class ExpenditureAdjustmentDto extends BaseDto {

    // 指标单表ID
    // （指标单表）外键
    private Long expenditureKpiId;

    // 填单人部门ID
    // （组织架构表）外键
    private Long submitOrganizationId;

    // 填单人用户ID
    // （用户表）外键
    private Long submitUserId;

    // 调整单号
    // 自动生成
    @Condition(operator = ConditionOperator.IN)
    private String adjustmentCode;

    // 调整日期
    private Date adjustmentDate;

    // 调整前金额
    private BigDecimal beforeAmount;

    // 调整金额
    private BigDecimal adjustAmount;

    // 调整后金额
    private BigDecimal afterAmount;

    // 调整比例
    private BigDecimal adjustRate;

    // 状态
    // 枚举取值:ExpenditureAdjustmentState
    @Condition(operator = ConditionOperator.IN)
    private String state;

    //Criteria
    private Date createTimeStart;
    private Date createTimeEnd;
    private Date updateTimeStart;
    private Date updateTimeEnd;
    private Date adjustmentDateStart;
    private Date adjustmentDateEnd;
}
